﻿#ifndef SUBJECT_H
#define SUBJECT_H
#include <QList>
#include <QString>
#include <QObject>

//class Subject : QObject
//{
//  Q_OBJECT
class Subject
{

public:
     Subject();
//     ~Subject();
//    explicit Subject(QObject *parent = nullptr);
    virtual ~Subject();

    // 构造函数，使用参数初始化成员变量
//    Subject(const QString &num, const QString &content, const QString &type, const QString &typeName,
//           const QString &analysis, const QString &answer, const QString &fraction,
//           const QString &optionA = "", const QString &optionB = "", const QString &optionC = "",
//           const QString &optionD = "", const QString &optionE = "", const QString &optionF = "",
//           const QString &optionG = "", const QString &optionH = "", const QString &optionI = "",
//           const QString &optionJ = "", const QString &optionK = "");

    void setSubNum(QString&);
    QString getSubNum();

//private:
     // 题目序号
     QString subNum;
     // 题目内容
     QString subContent;
     // 题目类型(1单选/2多选/3判断)
     QString subType;
     // 题目类型名称(1单选/2多选/3判断)
     QString subTypeName;
     // 题目解析
     QString subAnalysis;
     // 正确答案
     QString subAnswer;
     // 分数
     QString subFraction;

     // 选项A
     QString optionA;
     QString optionB;
     QString optionC;
     QString optionD;
     QString optionE;
     QString optionF;
     QString optionG;
     QString optionH;
     QString optionI;
     QString optionJ;
     QString optionK;
     QList<QString> optionList;
};

#endif // SUBJECT_H
